<div id="pager">
    {foreach from=$pager item=page}
        {if $page.current}
            <span class="pager current">{$page.id}</span>
        {else}
            <span class="pager"><a href="{$INA.this}?{if $smarty.get.search}search={$smarty.get.search}&{/if}pg={$page.id}">{$page.id}</a></span>
        {/if}
    {/foreach}
</div>